package com.huangsm.webmagic;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * 定制Pipnline
 * @author huang
 * @PACKAGE_NAME com.huangsm.webmagic
 * @PROJECT_NAME webmagic
 * @date 2019/1/29
 */
public class MyPipeline implements Pipeline {
    @Override
    public void process(ResultItems resultItems, Task task) {
        String title = resultItems.get("title");
        System.out.println("我的定制的 tilte"+title);
    }
}
